package ronglei.heima.day01;

public class Demo02While {
    public static void main(String[] args){
        int a = 1; //初始化语句
        while (a<=10){//条件判断语句
            System.out.println(a);
            a++; //控制语句
        };

     int count = 0;
     double paper = 0.1;
     int zf = 8844430;
     while (paper <= zf){
        paper *= 2;
        count ++;
     }
        System.out.println(count);


//     do...while  无论条件是否满足都会执行一遍
        int rong =1;
        do {
            System.out.println("来了老弟");
            rong ++ ;
        }while (rong<10);
    }
}
